package itcz.example.pattern.behavior_type.observer;

/**
 * @ClassName: WeixinUser
 * @Author: ITCZ
 * @Date: 2025-07-29
 * @Description: 观察者模式- 具体观察者
 */
public class WeixinUser implements Observer {
    // 微信用户名
    private String name;

    public WeixinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
